#include  <iostream>
using  namespace  std;

enum EmployeeType{Common=1,Saler,SalerManager};//普通员工，销售员，销售经理

class Wage
{
public:
   Wage(EmployeeType tp)
   {
       if(tp==1)//普通员工工资
       {
           cout<<"please input: base_wage";
           cin>>base_wage;
           wage=base_wage;
       }
        else if(tp==2)//销售员工资
        {
            cout<<"please input: base_wage && sales && rate ";
            cin>>base_wage>>sales>>rate;
            wage=sales*rate+base_wage;
        }
        else//销售经理工资
        {
            cout<<"please input: base_wage && sales && rate && prize";
            cin>>base_wage>>sales>>rate>>prize;
            wage=sales*rate+base_wage+prize;
        }
   }
   void print()
   {
       cout<<"Wage is "<<wage<<endl;
   }
private:
    double base_wage,attendance;//基本工资,出勤率
    double sales,rate;//销售额，提成比例
    double prize;//奖金
    double wage;//实际工资
};
int  main()
{
    Wage objA(Common);
    objA.print();
    Wage objB(Saler);
    objB.print();
    Wage objC(SalerManager);
    objC.print();
    return  0;
}
